package com.icez.bottom_navigation_view

import android.view.LayoutInflater
import android.view.View
import android.widget.TextView
import androidx.databinding.DataBindingUtil
import androidx.databinding.ViewDataBinding
import com.icez.base_util_library.LogUtil
import com.icez.bottom_navigation.BottomNavigationAdapter
import com.icez.bottom_navigation_view.databinding.ItemBottomTabBinding
import java.text.FieldPosition

class ItemBottomTabAdapter: BottomNavigationAdapter<ItemBottomTabBinding>() {


    override fun getSize(): Int {
        return 5
    }

    override fun setDefaultSelectPosition(): Int {
        return 2
    }


    override fun getItemView(position: Int): Int {
        return R.layout.item_bottom_tab
    }

    override fun selectedStatus(binding: ItemBottomTabBinding, position: Int) {
        binding?.itemBottomTabTv?.setText("选中")
    }

    override fun normalStatus(binding: ItemBottomTabBinding, position: Int,selectPosition: Int) {
        binding?.itemBottomTabTv?.setText("未选中")
    }

    override fun initViewValue(binding: ItemBottomTabBinding, position: Int) {

    }
}